﻿using Adalbertus.BudgetPlanner.Domain;
using FluentNHibernate.Mapping;

namespace Adalbertus.BudgetPlanner.Infrastructure.Mapping
{
    public class IncomeEntryMap : ClassMap<IncomeEntry>
    {
        public IncomeEntryMap()
        {
            Id(x => x.Id);
            Map(x => x.Date);
            Map(x => x.Value);

            //HasOne(x => x.Budget);
            References(x => x.Income);
        }
    }
}
